package Work319.Test2;

import java.util.Scanner;

/**
 * @author 张恒冕
 * 2019/3/19 10:22
 */
public class TV {
    String brand;
    byte size;

    public TV() {
    }

    public TV(String brand, byte size) {
        this.brand = brand;
        this.size = size;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setSize(byte size) {
        this.size = size;
    }

    public String getBrand() {
        return brand;
    }

    public byte getSize() {
        return size;
    }

    void output()
    {
        System.out.println(getBrand()+"牌电视"+"尺寸为"+getSize());
    }
}
